﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<table class="table-orderList">
    <thead>
    <td>id</td>
    <td>ico名称</td>
    <td>代币名称</td>
    <td>项目logo</td>
    <td>举报内容</td>
    <td>email</td>
    <td>提交时间</td>
    <td>审核状态</td>
    <td>审核人</td>
    <td>操作</td>
    </thead>
    <c:forEach var="item" items="${data}" varStatus="list">
        <tr>
            <td>${item.id }</td>
            <td>${item.ico_name }</td>
            <td>${item.ticker }</td>
            <td><img src="${item.p_logo}" width="100" height="100"></td>
            <td>${item.content }</td>
            <td>${item.email }</td>
            <td>
                <fmt:formatDate value="${item.create_time }" pattern="yyyy-MM-dd HH:mm"/>
            </td>
            <td>
                <c:choose>
                    <c:when test="${item.audit_status ==0}">
                        待审核
                    </c:when>
                    <c:when test="${item.audit_status ==1}">
                        审核通过
                    </c:when>
                    <c:when test="${item.audit_status ==2}">
                        审核拒绝
                    </c:when>
                </c:choose>
            </td>
            <td>${item.audit_name }</td>
            <td>
                <a class="text-primary mr-10" data-tab-title="查看"
                   href="${basePath}/t_common_report/add?id=${item.id}">查看</a>
                <a class="text-primary mr-10 delBtn" href="javascript:;" data-id="${item.id}">删除</a>
            </td>
        </tr>
    </c:forEach>

</table>

<c:choose>
    <c:when test="${!empty data}">
        ${page}
    </c:when>
    <c:otherwise>
        <div class="relative" style="height: 200px">
            <span>没有符合条件的数据，请尝试其他搜索条件</span>
        </div>
    </c:otherwise>
</c:choose>

